package com.hcbd.tdwt.ui.fuda.common.vo.weather;

import com.hcbd.tdwt.util.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

/**
 * - @Description:  天气实体类
 * - @Author:  LXJ
 * - @Time:  2019/7/31 11:12
 */
@Table(database = AppDatabase.class)
public class WeatherInfo extends BaseModel{
    //主键ID
    @PrimaryKey(autoincrement = true)
    public int id;
    //收发类型
    @Column
    int ioType;
    //天气类型
    @Column
    int weatherMode;
    //json数据
    @Column
    String jsonInfo;
    //创建时间
    @Column
    String createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }



    public int getWeatherMode() {
        return weatherMode;
    }

    public void setWeatherMode(int weatherMode) {
        this.weatherMode = weatherMode;
    }

    public String getJsonInfo() {
        return jsonInfo;
    }

    public void setJsonInfo(String jsonInfo) {
        this.jsonInfo = jsonInfo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "WeatherInfo{" +
                "id=" + id +
                ", ioType='" + ioType + '\'' +
                ", weatherMode=" + weatherMode +
                ", jsonInfo='" + jsonInfo + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }

    public void setIoType(int ioType) {
        this.ioType = ioType;
    }
    public int getIoType(){
        return ioType;
    }
}
